package com.syni.mdd.yhd.common.all.service.impl;

import com.syni.mdd.yhd.common.all.dao.jpa.BmsAgentDao;
import com.syni.mdd.yhd.common.all.entity.BmsAgent;
import com.syni.mdd.yhd.common.all.service.BmsAgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/9 12:04
 * @VERSION 1.0
 **/
@Service
public class BmsAgentServiceImpl implements BmsAgentService {
    @Autowired
    BmsAgentDao bmsAgentDao;

    @Override
    public BmsAgentDao getBaseDao() {
        return bmsAgentDao;
    }

    @Override
    public List<BmsAgent> findByInvitationCode(String invitationCode) {
        List<BmsAgent> bmsAgents = bmsAgentDao.findByInvitationCode(invitationCode);
        return bmsAgents;
    }

}
